package com.yfp.group.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单管理 订单列表 订单详情展示类
 */
@Data
public class EnterpriseOrderDetailVO implements Serializable {

    private static final long serialVersionUID = 4534309257581974523L;

    /**
     * 套餐ID
     */
    @Schema(description = "套餐ID")
    private String comboId;

    /**
     * 套餐名称
     */
    @Schema(description = "套餐名称")
    private String comboName;

    /**
     * 购买套餐数量
     */
    @Schema(description = "购买套餐数量")
    private Integer comboNum;

    /**
     * 套餐单价
     */
    @Schema(description = "套餐单价")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal comboPrice;

    /**
     * 套餐总价
     */
    @Schema(description = "套餐总价")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal totalPrice;

    /**
     * 套餐图片url地址
     */
    @Schema(description = "套餐图片url地址")
    private String comboImgUrl;
}
